/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.evangelion.core.serviceImpl;

import com.evangelion.core.bean.Seccione;
import com.evangelion.core.bean.Vehiculo;
import com.evangelion.core.dao.VehiculoDao;
import com.evangelion.core.daoImpl.VehiculoDaoImpl;
import com.evangelion.core.service.VehiculoService;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;

/**
 *
 * @author Usuario
 */
public class VehiculoServiceImpl implements VehiculoService{

    @Autowired
    VehiculoDaoImpl vehiculoDao= new VehiculoDaoImpl();
    @Override
    public void save(Vehiculo vehiculo) {
        vehiculoDao.save(vehiculo);
    }

    @Override
    public void delete(Vehiculo vehiculo) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Vehiculo find(Vehiculo vehiculo) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public Vehiculo findObjByParam(String parametro, String valor) throws Exception{
        return (Vehiculo)vehiculoDao.findObjByParam(Vehiculo.class, parametro, valor);
    }

    @Override
    public List<Vehiculo> findByParam(String parametro, String valor) {
        return (List)vehiculoDao.findByParam(Vehiculo.class, parametro, valor);
    }

    @Override
    public List<Vehiculo> ListActive(Vehiculo vehiculo) {
        throw new UnsupportedOperationException("Not supported yet."); //To change body of generated methods, choose Tools | Templates.
    }

    @Override
    public List<Vehiculo> findListByParam(String parametro, String valor) {
        return (List)vehiculoDao.findListByParam(Vehiculo.class, parametro, valor);
    }

    @Override
    public List<Vehiculo> findListByParamSeccion(Seccione seccion, String parametro, String valor) {
        return (List)vehiculoDao.findListByParamSeccion(seccion, parametro, valor);
    }
    
}
